package logic

import (
	"context"
	"travel-app/common/proto/travel"
	"travel-app/rpc/sever"
)

type ServiceTravel struct {
	travel.UnimplementedTravelServer
}

func (s ServiceTravel) EsSync(ctx context.Context, in *travel.EsSyncReq) (*travel.EsSyncResp, error) {
	login, err := sever.EsSync(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) EsSyncGet(ctx context.Context, in *travel.EsSyncGetReq) (*travel.EsSyncGetResp, error) {
	login, err := sever.EsSyncGet(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) AreaList(ctx context.Context, in *travel.AreaListReq) (*travel.AreaListResp, error) {
	login, err := sever.AreaList(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) BuyTicKet(ctx context.Context, in *travel.BuyTicKetReq) (*travel.BuyTicKetResp, error) {
	login, err := sever.BuyTicKet(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) PayCallback(ctx context.Context, in *travel.PayCallbackReq) (*travel.PayCallbackResp, error) {
	login, err := sever.CallBack(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) FindOrder(ctx context.Context, in *travel.FindOrderReq) (*travel.FindOrderResp, error) {
	login, err := sever.FindOrder(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceTravel) DelOrder(ctx context.Context, in *travel.DelOrderReq) (*travel.DelOrderResp, error) {
	login, err := sever.DelOrder(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
